BIN = myproc
SOU = $(wildcard *.c)
OBJ = $(SOU:.c=.o)
CC = gcc
CFLAG = -c

$(BIN):$(OBJ)
	@$(CC) -o $(@) $(^)
%.o:%.c
	@$(CC) $(CFLAG) $(<)

.PHONY:clean
clean:
	rm -rf $(BIN) $(OBJ)
.PHONY:run
run:
	@./$(BIN)